import axios from "axios";
export default {
   searchUser(data){
    return axios({
        method:"GET",
        params:data,
        url:'/administrator/search'
    })
   },
   addAdmin(data){
    return axios({
        method:"POST",
        params:data,
        url:'/administrator/admin'
    })
   },
   delAdmin(data){
    return axios({
        method:"DELETE",
        params:data,
        url:'/administrator/admin'
    })
   },
   getAdminPage(data) {
    return axios({
        method:"GET",
        params:data,
        url:'/administrator/page'
    })
   },
   getAuthInfo(data) {
    return axios({
        method:"GET",
        params:data,
        url:'/administrator/getAuthInfo'
    })
   }
}